//泛型类型
function identity<T>(arg:T):T{
    return arg
}
let myIdentity:<T>(arg:T)=>T=identity;

//泛型类
class GenericNumber<T>{
    public value1:T;
    public add:(x:T,y:T)=>T
}

let myGenericNumber=new GenericNumber<number>();